<?php
class Solicitudes_Form_AceptacionVisita extends Form_Cna {
     protected $factores;
	
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		$this->setName('aceptacionvisita');
		$this->setMethod("post");
		$this->setAttrib('enctype', 'multipart/form-data');
		$domConfig = Zend_Registry::get('domConfig');
		
		$array_elements[] = new Zend_Form_Element_Hidden("codparproceso");
		
		$element = new Zend_Form_Element_Radio('estadoaceptacionpar');
		$element->setLabel("Aceptar - Rechazar visita : ");
		$element->clearMultiOptions();
		$element->addMultiOptions(array(2=>"Aceptar",3=>"Rechazar"));
        $element->setRequired(true);
		$array_elements[] = $element;
		
	               
		$element = new Zend_Form_Element_Textarea('justificacionpar');
		$element->setLabel('Justificación y observaciones :');
//		$element->setRequired(true);
		$element->addFilter('StripTags');
		$element->addFilter('StringTrim');
//		$element->addFilter('StringToUpper');
		$element->setAttrib("rows",3);
		$element->setAttrib("style","width:99%");
		$element->addValidator('StringLength', false, array($domConfig->TEXTO_TAMANOMIN));
        $array_elements[] = $element;
                
		$element = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$element->setValue('Guardar');
		$element->setLabel("Guardar");
		$element->setAttrib("class", "iceCmdBtn");
		$array_elements[] = $element;
		
		$this->addElements ($array_elements);
		
		$this->loadTableDecorators();
	}
}